<?php

declare(strict_types=1);

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;

class ProductModel extends Model
{
    public const OPEN_CITY_CONFIG  = 1; // 启动城市配置
    public const CLOSE_CITY_CONFIG = 2;  // 关闭城市配置

    public const SINGLE_TYPE   = 1;    // 单规格
    public const MULTIPLE_TYPE = 2;     // 多规格

    protected $table = 'products';

    public function skus()
    {
        return $this->hasMany(ProductSkuModel::class);
    }
}
